package com.kang.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.kang.dao.WarehouseOrder_itemInformationMapper;
import com.kang.pojo.WarehouseOrder_iteminformation;
import com.kang.service.warehouseOrder_itemInformationService;

/**
 * 采购入库-物品服务Impl
 * 
 * @author ysq
 *
 */
@Service
public class warehouseOrder_itemInformationServiceImpl implements
		warehouseOrder_itemInformationService {
	/**
	 * 采购入库-物品
	 */
	@Resource
	private WarehouseOrder_itemInformationMapper who_iif;

	/**
	 * 保存采购入库-物品WarehouseOrder_iteminformation
	 */
	@Override
	public int insertone(
			WarehouseOrder_iteminformation warehouseOrder_iteminformation) {
		return who_iif.insertSelective(warehouseOrder_iteminformation);
	}

	/**
	 * 查询WarehouseOrder_iteminformation数据根据warehouseOrderID
	 */
	@Override
	public List<WarehouseOrder_iteminformation> selectWarehouseOrder_iteminformationByPurchaseordereid(
			Integer purchaseordereid) {
		return who_iif
				.selectWarehouseOrder_iteminformationByPurchaseordereid(purchaseordereid);
	}

	/**
	 * 根据warehouseOrderID删除warehouseorder_iteminformation
	 */
	@Override
	public int deleteByWarehouseOrderID(Integer warehouseOrderID) {
		return who_iif.deleteByWarehouseOrderID(warehouseOrderID);
	}

}
